(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
a__and(tt, X) → mark(X)
a__plus(N, 0) → mark(N)
a__plus(N, s(M)) → s(a__plus(mark(N), mark(M)))
a__x(N, 0) → 0
a__x(N, s(M)) → a__plus(a__x(mark(N), mark(M)), mark(N))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(x(X1, X2)) → a__x(mark(X1), mark(X2))
mark(tt) → tt
mark(0) → 0
mark(s(X)) → s(mark(X))
a__and(X1, X2) → and(X1, X2)
a__plus(X1, X2) → plus(X1, X2)
a__x(X1, X2) → x(X1, X2)
Rewrite Strategy: INNERMOST
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
a__and(tt, and(tt, X29_3)) →+ a__and(tt, X29_3)
gives rise to a decreasing loop by considering the right hand sides subterm at position [].
The pumping substitution is [X29_3 / and(tt, X29_3)].
The result substitution is [ ].
(2) BOUNDS(n^1, INF)
(3) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(4) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a__and(tt, X) → mark(X)
a__plus(N, 0') → mark(N)
a__plus(N, s(M)) → s(a__plus(mark(N), mark(M)))
a__x(N, 0') → 0'
a__x(N, s(M)) → a__plus(a__x(mark(N), mark(M)), mark(N))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(x(X1, X2)) → a__x(mark(X1), mark(X2))
mark(tt) → tt
mark(0') → 0'
mark(s(X)) → s(mark(X))
a__and(X1, X2) → and(X1, X2)
a__plus(X1, X2) → plus(X1, X2)
a__x(X1, X2) → x(X1, X2)
S is empty.
Rewrite Strategy: INNERMOST
(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(6) Obligation:
Innermost TRS:
Rules:
a__and(tt, X) → mark(X)
a__plus(N, 0') → mark(N)
a__plus(N, s(M)) → s(a__plus(mark(N), mark(M)))
a__x(N, 0') → 0'
a__x(N, s(M)) → a__plus(a__x(mark(N), mark(M)), mark(N))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(x(X1, X2)) → a__x(mark(X1), mark(X2))
mark(tt) → tt
mark(0') → 0'
mark(s(X)) → s(mark(X))
a__and(X1, X2) → and(X1, X2)
a__plus(X1, X2) → plus(X1, X2)
a__x(X1, X2) → x(X1, X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
(7) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
mark,
a__plus,
a__xThey will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(8) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
The following defined symbols remain to be analysed:
a__plus, mark, a__x
They will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(9) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol a__plus.
(10) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
The following defined symbols remain to be analysed:
mark, a__x
They will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(11) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
mark(
gen_tt:0':s:and:plus:x2_0(
n11447_0)) →
gen_tt:0':s:and:plus:x2_0(
n11447_0), rt ∈ Ω(1 + n11447
0)
Induction Base:
mark(gen_tt:0':s:and:plus:x2_0(0)) →RΩ(1)
tt
Induction Step:
mark(gen_tt:0':s:and:plus:x2_0(+(n11447_0, 1))) →RΩ(1)
s(mark(gen_tt:0':s:and:plus:x2_0(n11447_0))) →IH
s(gen_tt:0':s:and:plus:x2_0(c11448_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(12) Complex Obligation (BEST)
(13) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
The following defined symbols remain to be analysed:
a__x, a__plus
They will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(14) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
a__x(
gen_tt:0':s:and:plus:x2_0(
a),
gen_tt:0':s:and:plus:x2_0(
+(
1,
n12608_0))) →
*3_0, rt ∈ Ω(a·n12608
0 + n12608
0 + n12608
02)
Induction Base:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, 0)))
Induction Step:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, +(n12608_0, 1)))) →RΩ(1)
a__plus(a__x(mark(gen_tt:0':s:and:plus:x2_0(a)), mark(gen_tt:0':s:and:plus:x2_0(+(1, n12608_0)))), mark(gen_tt:0':s:and:plus:x2_0(a))) →LΩ(1 + a)
a__plus(a__x(gen_tt:0':s:and:plus:x2_0(a), mark(gen_tt:0':s:and:plus:x2_0(+(1, n12608_0)))), mark(gen_tt:0':s:and:plus:x2_0(a))) →LΩ(2 + n126080)
a__plus(a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))), mark(gen_tt:0':s:and:plus:x2_0(a))) →IH
a__plus(*3_0, mark(gen_tt:0':s:and:plus:x2_0(a))) →LΩ(1 + a)
a__plus(*3_0, gen_tt:0':s:and:plus:x2_0(a))
We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).
(15) Complex Obligation (BEST)
(16) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
The following defined symbols remain to be analysed:
a__plus, mark
They will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(17) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
a__plus(
gen_tt:0':s:and:plus:x2_0(
a),
gen_tt:0':s:and:plus:x2_0(
+(
1,
n17144_0))) →
*3_0, rt ∈ Ω(a·n17144
0 + n17144
0 + n17144
02)
Induction Base:
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, 0)))
Induction Step:
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, +(n17144_0, 1)))) →RΩ(1)
s(a__plus(mark(gen_tt:0':s:and:plus:x2_0(a)), mark(gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))))) →LΩ(1 + a)
s(a__plus(gen_tt:0':s:and:plus:x2_0(a), mark(gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))))) →LΩ(2 + n171440)
s(a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0)))) →IH
s(*3_0)
We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).
(18) Complex Obligation (BEST)
(19) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))) → *3_0, rt ∈ Ω(a·n171440 + n171440 + n1714402)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
The following defined symbols remain to be analysed:
mark, a__x
They will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(20) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
mark(
gen_tt:0':s:and:plus:x2_0(
n19317_0)) →
gen_tt:0':s:and:plus:x2_0(
n19317_0), rt ∈ Ω(1 + n19317
0)
Induction Base:
mark(gen_tt:0':s:and:plus:x2_0(0)) →RΩ(1)
tt
Induction Step:
mark(gen_tt:0':s:and:plus:x2_0(+(n19317_0, 1))) →RΩ(1)
s(mark(gen_tt:0':s:and:plus:x2_0(n19317_0))) →IH
s(gen_tt:0':s:and:plus:x2_0(c19318_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(21) Complex Obligation (BEST)
(22) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n19317_0)) → gen_tt:0':s:and:plus:x2_0(n19317_0), rt ∈ Ω(1 + n193170)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))) → *3_0, rt ∈ Ω(a·n171440 + n171440 + n1714402)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
The following defined symbols remain to be analysed:
a__x
They will be analysed ascendingly in the following order:
mark = a__plus
mark = a__x
a__plus = a__x
(23) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
a__x(
gen_tt:0':s:and:plus:x2_0(
a),
gen_tt:0':s:and:plus:x2_0(
+(
1,
n20684_0))) →
*3_0, rt ∈ Ω(a·n20684
0 + n20684
0 + n20684
02)
Induction Base:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, 0)))
Induction Step:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, +(n20684_0, 1)))) →RΩ(1)
a__plus(a__x(mark(gen_tt:0':s:and:plus:x2_0(a)), mark(gen_tt:0':s:and:plus:x2_0(+(1, n20684_0)))), mark(gen_tt:0':s:and:plus:x2_0(a))) →LΩ(1 + a)
a__plus(a__x(gen_tt:0':s:and:plus:x2_0(a), mark(gen_tt:0':s:and:plus:x2_0(+(1, n20684_0)))), mark(gen_tt:0':s:and:plus:x2_0(a))) →LΩ(2 + n206840)
a__plus(a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n20684_0))), mark(gen_tt:0':s:and:plus:x2_0(a))) →IH
a__plus(*3_0, mark(gen_tt:0':s:and:plus:x2_0(a))) →LΩ(1 + a)
a__plus(*3_0, gen_tt:0':s:and:plus:x2_0(a))
We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).
(24) Complex Obligation (BEST)
(25) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n19317_0)) → gen_tt:0':s:and:plus:x2_0(n19317_0), rt ∈ Ω(1 + n193170)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n20684_0))) → *3_0, rt ∈ Ω(a·n206840 + n206840 + n2068402)
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))) → *3_0, rt ∈ Ω(a·n171440 + n171440 + n1714402)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
No more defined symbols left to analyse.
(26) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n2) was proven with the following lemma:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n20684_0))) → *3_0, rt ∈ Ω(a·n206840 + n206840 + n2068402)
(27) BOUNDS(n^2, INF)
(28) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n19317_0)) → gen_tt:0':s:and:plus:x2_0(n19317_0), rt ∈ Ω(1 + n193170)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n20684_0))) → *3_0, rt ∈ Ω(a·n206840 + n206840 + n2068402)
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))) → *3_0, rt ∈ Ω(a·n171440 + n171440 + n1714402)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
No more defined symbols left to analyse.
(29) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n2) was proven with the following lemma:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n20684_0))) → *3_0, rt ∈ Ω(a·n206840 + n206840 + n2068402)
(30) BOUNDS(n^2, INF)
(31) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n19317_0)) → gen_tt:0':s:and:plus:x2_0(n19317_0), rt ∈ Ω(1 + n193170)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))) → *3_0, rt ∈ Ω(a·n171440 + n171440 + n1714402)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
No more defined symbols left to analyse.
(32) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n2) was proven with the following lemma:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
(33) BOUNDS(n^2, INF)
(34) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
a__plus(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n17144_0))) → *3_0, rt ∈ Ω(a·n171440 + n171440 + n1714402)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
No more defined symbols left to analyse.
(35) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n2) was proven with the following lemma:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
(36) BOUNDS(n^2, INF)
(37) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
No more defined symbols left to analyse.
(38) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n2) was proven with the following lemma:
a__x(gen_tt:0':s:and:plus:x2_0(a), gen_tt:0':s:and:plus:x2_0(+(1, n12608_0))) → *3_0, rt ∈ Ω(a·n126080 + n126080 + n1260802)
(39) BOUNDS(n^2, INF)
(40) Obligation:
Innermost TRS:
Rules:
a__and(
tt,
X) →
mark(
X)
a__plus(
N,
0') →
mark(
N)
a__plus(
N,
s(
M)) →
s(
a__plus(
mark(
N),
mark(
M)))
a__x(
N,
0') →
0'a__x(
N,
s(
M)) →
a__plus(
a__x(
mark(
N),
mark(
M)),
mark(
N))
mark(
and(
X1,
X2)) →
a__and(
mark(
X1),
X2)
mark(
plus(
X1,
X2)) →
a__plus(
mark(
X1),
mark(
X2))
mark(
x(
X1,
X2)) →
a__x(
mark(
X1),
mark(
X2))
mark(
tt) →
ttmark(
0') →
0'mark(
s(
X)) →
s(
mark(
X))
a__and(
X1,
X2) →
and(
X1,
X2)
a__plus(
X1,
X2) →
plus(
X1,
X2)
a__x(
X1,
X2) →
x(
X1,
X2)
Types:
a__and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
tt :: tt:0':s:and:plus:x
mark :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
0' :: tt:0':s:and:plus:x
s :: tt:0':s:and:plus:x → tt:0':s:and:plus:x
a__x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
and :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
plus :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
x :: tt:0':s:and:plus:x → tt:0':s:and:plus:x → tt:0':s:and:plus:x
hole_tt:0':s:and:plus:x1_0 :: tt:0':s:and:plus:x
gen_tt:0':s:and:plus:x2_0 :: Nat → tt:0':s:and:plus:x
Lemmas:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
Generator Equations:
gen_tt:0':s:and:plus:x2_0(0) ⇔ tt
gen_tt:0':s:and:plus:x2_0(+(x, 1)) ⇔ s(gen_tt:0':s:and:plus:x2_0(x))
No more defined symbols left to analyse.
(41) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_tt:0':s:and:plus:x2_0(n11447_0)) → gen_tt:0':s:and:plus:x2_0(n11447_0), rt ∈ Ω(1 + n114470)
(42) BOUNDS(n^1, INF)